#ifndef COMMON_H
#define COMMON_H

/**
* @file common.h
* @describe 定义一些公共信息
* @author gaoyuelong
* @date 2022/05/02
*/

#include <QString>

enum E_MESSAGE_TYPE {
    eUnknown = -1,
    eLogin = 0,
    eLoginAck,
    eRegister,
    eRegisterAck,
    eChatMsg
};

enum E_STATE {
    eTrue,
    eFalse
};

enum E_ERROR_TYPE {
    eNoError,
    eConnectionFail,	//连接失败
    ePasswordError		//密码错误
};

const QString strOnLine = "online";
const QString strOffLine = "offline";

#endif // COMMON_H
